
#include <cstdlib>
#include <iostream>
#include <pthread.h>
#include <PaceController.h>

#define MRIDUL
#ifdef MRIDUL

#include "ADC.h"
#include "PWM.h"
#endif

int main(void) {
//int main(int argc, char *argv[]) {

	int retval;
	pthread_t controllerthread, configurethread;

	void **value_ptr;

	std::cout << "Welcome to the QNX Momentics IDE" << std::endl;

	retval = pthread_create(&controllerthread, NULL, PaceController::Cyclic, NULL);
	retval = pthread_create(&configurethread, NULL, ConfigManager::Cyclic, NULL);

	pthread_join(controllerthread, value_ptr);
	pthread_join(configurethread, value_ptr);
	//std::printf("There is something here -");

	return EXIT_SUCCESS;
}
